package com.dingding.service.user.core.dao.impl;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.dingding.common.core.base.dao.impl.BaseDaoImpl;
import com.dingding.common.core.beans.special.SpecialOrderComment;
import com.dingding.service.user.core.dao.SpecialOrderCommentDao;

/** 
 * @ClassName: SpecialOrderCommentDaoImpl 
 * @Description: 专车订单评论实现类
 * @author SUNZHICHENG 
 * @date 2016年8月31日 下午5:08:53 
 * 
*/
@SuppressWarnings("deprecation")
@Component("specialOrderCommentDao")
public class SpecialOrderCommentDaoImpl extends BaseDaoImpl<SpecialOrderComment> implements SpecialOrderCommentDao{
	private Logger log = Logger.getLogger(this.getClass());
	/**
	 * 
	 * @Title: addSpecialOrderComment 
	 * @Description: 添加专车订单评论
	 * @param specialOrderComment 乘客的评论信息
	 * @return boolean 
	 * @author SUNZHICHENG  
	 * @date  2016年8月31日 下午4:56:22
	 * @since v2.4.0
	 */
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public boolean addSpecialOrderComment(SpecialOrderComment specialOrderComment) {

				try {
					super.save(specialOrderComment);
					return true;
				} catch (Exception e) {
					log.error("添加专车订单评论时出现异常 "+this.getClass()+",addSpecialOrderComment()", e);
				}
			return false;
		}

	
}
